Page({
  goPassport (e) {
    wx.navigateTo({
      url: '/visitor_pkg/pages/passport/index?id=' + e.mark.id
    })
  },
  data: {
    list: []
  },
  onShow () {
    this.getList()
  },
  // 获取访客列表
  async getList () {
    const { data } = await wx.http.get('/visitor')
    this.setData({
      list: data.rows
    })
    console.log(this.data.list)
  }
})
